package fl.video 
{
	import flash.events.Event;

	public class VideoPlaybackErrorEvent extends Event
	{
		public var reason:String  = "Unknown error";

		public static const PLAYBACK_ERROR:String  = "videoPlaybackError";
		public static const REASON_ERROR_SETTING_STATE:String = "Error setting video state";
		public static const REASON_INVALID_SEEK:String = "Invalid seek";
		public static const REASON_UNKNOWN:String = "Unknown error";

		public function VideoPlaybackErrorEvent ( reason:String, bubbles:Boolean=false, cancelable:Boolean=false ) 
		{
			super(reason, bubbles, cancelable);
			this.reason = reason;
		}

		override public function clone():Event 
		{
			return new VideoPlaybackErrorEvent(reason, bubbles, cancelable);
		}
	}
}
